Matthias Clasen [Wed, 5 May 2021 19:41:46 +0000 (15:41 -0400)]
Add debug spew to gdk tests
Matthias Clasen [Sun, 2 May 2021 01:02:08 +0000 (21:02 -0400)]
Disable another font-challenged reftest
Matthias Clasen [Sun, 2 May 2021 00:21:54 +0000 (20:21 -0400)]
Help the compiler out
gcc says: error: iteration
2147483649 invokes undefined behavior
[-Werror=aggressive-loop-optimizations]
which of course, never happens because ncols is always >= 2.
Add some assertions to tell the compiler.
Matthias Clasen [Sat, 1 May 2021 23:56:23 +0000 (19:56 -0400)]
ci: Update the image to Fedora 34
This is in preparation to using mutter --headless
for tests.
Matthias Clasen [Wed, 5 May 2021 00:04:16 +0000 (00:04 +0000)]
Merge branch 'bilelmoussaoui/trick-gir-list-position' into 'master'
gtk: trick g-ir scanner to add INVALID_LIST_POSITION
See merge request GNOME/gtk!3513
Bilal Elmoussaoui [Tue, 4 May 2021 21:33:41 +0000 (21:33 +0000)]
gtk: trick g-ir scanner to add INVALID_LIST_POSITION
without it, the define doesn't get picked in the introspection data
Matthias Clasen [Tue, 4 May 2021 21:40:48 +0000 (21:40 +0000)]
Merge branch 'wip/exalm/text-handles' into 'master'
texthandle: Add a contents css node
Closes #3475
See merge request GNOME/gtk!3511
Matthias Clasen [Tue, 4 May 2021 21:03:30 +0000 (21:03 +0000)]
Merge branch 'fix-reftest' into 'master'
Fix the icon-effect-missing reftest
See merge request GNOME/gtk!3512
Matthias Clasen [Tue, 4 May 2021 20:21:37 +0000 (16:21 -0400)]
Fix the icon-effect-missing reftest
This was comparing the included image-missing icon
with the one in the current icontheme on the test
system. Works fine as long as we don't change
the icons (which we just did). To avoid this, set
the icontheme to hicolor for this test, which does
not have the image-missing icon, so we end up getting
the builtin icon for both ui files.
Alexander Mikhaylenko [Tue, 4 May 2021 18:53:05 +0000 (23:53 +0500)]
texthandle: Add a contents css node
Allow to theme it including using css transforms to avoid having assets.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3475
Matthias Clasen [Tue, 4 May 2021 16:18:29 +0000 (16:18 +0000)]
Merge branch 'wip/exalm/switch-icons' into 'master'
icons: Fix switch icon names
Closes #3920
See merge request GNOME/gtk!3509
Matthias Clasen [Tue, 4 May 2021 16:18:00 +0000 (16:18 +0000)]
Merge branch 'wip/exalm/icons' into 'master'
Update icons from adwaita-icon-theme
Closes #2656
See merge request GNOME/gtk!3510
Alexander Mikhaylenko [Tue, 4 May 2021 13:50:31 +0000 (18:50 +0500)]
icons: Update from adwaita-icon-theme
Also add the missing edit-clear RTL variant.
Alexander Mikhaylenko [Tue, 4 May 2021 13:34:51 +0000 (18:34 +0500)]
icons: Remove media-playback-start-symbolic-rtl
See https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/issues/101
Matthias Clasen [Tue, 4 May 2021 13:17:53 +0000 (13:17 +0000)]
Merge branch 'wip/exalm/css-error' into 'master'
cssselector: Fix max_selector usage
Closes #3100
See merge request GNOME/gtk!3507
Alexander Mikhaylenko [Tue, 4 May 2021 12:49:07 +0000 (17:49 +0500)]
icons: Fix switch icon names
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3920
Matthias Clasen [Tue, 4 May 2021 11:53:13 +0000 (11:53 +0000)]
Merge branch 'test.msvc' into 'master'
clipboard-client.c: Include necessary headers for Windows
See merge request GNOME/gtk!3505
Alexander Mikhaylenko [Mon, 3 May 2021 09:41:15 +0000 (14:41 +0500)]
cssselector: Fix max_selector usage
Reverts
2ae8ace78499074a4d0ea6d9272cda0e6b9d5807 other than code style
fixes.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3100
Chun-wei Fan [Mon, 3 May 2021 08:33:14 +0000 (16:33 +0800)]
clipboard-client.c: Include necessary headers for Windows
We need to include io.h and process.h for close() and exit(), as unistd.h may
not be universally available.
Matthias Clasen [Tue, 4 May 2021 00:14:39 +0000 (20:14 -0400)]
4.3.0
Matthias Clasen [Tue, 4 May 2021 00:30:51 +0000 (20:30 -0400)]
Fix dist script for theme reorg
Matthias Clasen [Mon, 3 May 2021 23:55:46 +0000 (23:55 +0000)]
Merge branch 'wip/exalm/textview-selection' into 'master'
textview: Selection rendering fixes
See merge request GNOME/gtk!3503
Matthias Clasen [Mon, 3 May 2021 21:35:55 +0000 (21:35 +0000)]
Merge branch 'gnome-todo-dnd-crash' into 'master'
dragsource: Keep the source alive long enough
See merge request GNOME/gtk!3504
Alexander Mikhaylenko [Mon, 3 May 2021 20:25:36 +0000 (01:25 +0500)]
label: Update selection node and redraw on state changes
Mirror GtkText and GtkTextView.
Matthias Clasen [Mon, 3 May 2021 21:00:17 +0000 (17:00 -0400)]
dragsource: Keep the source alive long enough
When a drop causes the event controller to be finalized
(directly or indirectly), we end up segfaulting while
trying to wrap up the drag operation. So, keep a reference
on the GtkDragSource from when the drag begins to when
it is done.
This fixes a crash in gnome-todo when dragging tasks.
Alexander Mikhaylenko [Mon, 3 May 2021 20:20:53 +0000 (01:20 +0500)]
text: Queue redraw on state changes
Mirror GtkTextView.
Alexander Mikhaylenko [Mon, 3 May 2021 19:32:25 +0000 (00:32 +0500)]
textlayout: Clip selection bounds to the line extents
The rest of the line will be painted separately.
Matthias Clasen [Mon, 3 May 2021 00:03:46 +0000 (20:03 -0400)]
NEWS: Updates
Matthias Clasen [Mon, 3 May 2021 19:21:42 +0000 (19:21 +0000)]
Merge branch 'static-analysis-fixes' into 'master'
Static analyis fixes
See merge request GNOME/gtk!3501
Matthias Clasen [Mon, 3 May 2021 19:21:18 +0000 (19:21 +0000)]
Merge branch 'ebassi/for-master' into 'master'
Install documentation in the appropriate place
See merge request GNOME/gtk!3408
Matthias Clasen [Mon, 3 May 2021 19:20:18 +0000 (19:20 +0000)]
Merge branch 'wip/carlosg/xdg-activation' into 'master'
gdk/wayland: Support the xdg-activation wayland protocol
See merge request GNOME/gtk!3502
Alexander Mikhaylenko [Mon, 3 May 2021 17:05:44 +0000 (22:05 +0500)]
textlayout: Support fully transparent selection text
Pango treats 0 alpha value as a unset alpha, so we have to special case it.
Alexander Mikhaylenko [Mon, 3 May 2021 16:40:37 +0000 (21:40 +0500)]
textview: Invalidate selection when its style changes
Alexander Mikhaylenko [Mon, 3 May 2021 14:03:47 +0000 (19:03 +0500)]
textlayout: Only special case selection rendering for opaque colors
If the selection is partially transparent, it may still be desirable to
see the colors from tags underneath.
Carlos Garnacho [Wed, 2 Dec 2020 16:22:41 +0000 (17:22 +0100)]
gdk/wayland: Support the xdg-activation wayland protocol
This protocol implements the IPC necessary to focus application
windows across launcher/launchee. Add support for it.
Matthias Clasen [Mon, 3 May 2021 11:36:34 +0000 (07:36 -0400)]
updateiconcache: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:36:19 +0000 (07:36 -0400)]
buildertool: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:35:57 +0000 (07:35 -0400)]
printbackendlpr: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:35:40 +0000 (07:35 -0400)]
textbtree: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:35:21 +0000 (07:35 -0400)]
stack: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:35:03 +0000 (07:35 -0400)]
printoperation: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:34:46 +0000 (07:34 -0400)]
listbase: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:34:24 +0000 (07:34 -0400)]
filterlistmodel: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:34:04 +0000 (07:34 -0400)]
emojichooser: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:33:49 +0000 (07:33 -0400)]
fnmatch: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:33:31 +0000 (07:33 -0400)]
a11y: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:32:57 +0000 (07:32 -0400)]
x11: A few static analysis fixes
Matthias Clasen [Mon, 3 May 2021 02:34:22 +0000 (22:34 -0400)]
gdktoplevelsize: Comment out some unused code
This is not currently useful, and clang complains.
Matthias Clasen [Mon, 3 May 2021 01:40:46 +0000 (01:40 +0000)]
Merge branch 'inspector-layouts' into 'master'
Various small inspector improvements
See merge request GNOME/gtk!3500
Matthias Clasen [Mon, 3 May 2021 00:47:09 +0000 (20:47 -0400)]
inspector: Improve monitor information display
Avoid a nested listbox, show the connector,
don't show information we don't have. Also,
disconnect all signal handlers from the display
when the inspector is going away.
Matthias Clasen [Mon, 26 Apr 2021 04:15:34 +0000 (00:15 -0400)]
inspector: Show keyboard layouts
Matthias Clasen [Mon, 26 Apr 2021 03:34:39 +0000 (23:34 -0400)]
Add gdk_wayland_device_get_xkb_keymap
This can be useful to get more detailed information
about keyboard configuration.
Matthias Clasen [Mon, 26 Apr 2021 03:34:16 +0000 (23:34 -0400)]
Add 4.4 version macros
Matthias Clasen [Mon, 3 May 2021 00:07:50 +0000 (20:07 -0400)]
Bump version to 4.3.0
We are going to add new API.
Fix up affected tests.
Matthias Clasen [Sun, 2 May 2021 23:51:41 +0000 (23:51 +0000)]
Merge branch 'shifted-mnemonics' into 'master'
shortcuts: Ignore consumed modifiers for mnemonics
Closes #3912
See merge request GNOME/gtk!3499
Matthias Clasen [Sun, 2 May 2021 22:42:35 +0000 (22:42 +0000)]
Merge branch 'mesa.win32.fixes' into 'master'
gdkglcontext-win32.c: Fix running with Mesa drivers
See merge request GNOME/gtk!3483
Matthias Clasen [Sun, 2 May 2021 22:33:44 +0000 (18:33 -0400)]
shortcuts: Ignore consumed modifiers for mnemonics
This is necessary to make mnemonics like Alt-1 work in
layouts where numeric keys are shifted, like AZERTY.
Fixes: #3912
Matthias Clasen [Sun, 2 May 2021 14:00:51 +0000 (14:00 +0000)]
Merge branch 'more-content-serializer-tests' into 'master'
Add a test for custom serializers
See merge request GNOME/gtk!3497
Matthias Clasen [Sun, 2 May 2021 13:17:20 +0000 (09:17 -0400)]
Add a test for custom serializers
Matthias Clasen [Sun, 2 May 2021 04:30:19 +0000 (04:30 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Add tests for content serialization
See merge request GNOME/gtk!3496
Matthias Clasen [Sun, 2 May 2021 04:01:57 +0000 (00:01 -0400)]
Add tests for content serialization
Test that roundtripping various types of content
through a stream of a given mimetype works as
expected.
Matthias Clasen [Sun, 2 May 2021 03:09:41 +0000 (03:09 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
contentdeserializer: Fix an oversight
See merge request GNOME/gtk!3495
Matthias Clasen [Sun, 2 May 2021 02:44:41 +0000 (22:44 -0400)]
contentdeserializer: Fix an oversight
The argument passed with string_deserializer must be
a charset name. Passing the mimetype there does not
make sense.
Matthias Clasen [Sat, 1 May 2021 16:06:26 +0000 (16:06 +0000)]
Merge branch 'fix-gst-type' into 'master'
gtkgstmediafile: Fix callback argument type
See merge request GNOME/gtk!3494
Matthias Clasen [Sat, 1 May 2021 15:59:30 +0000 (15:59 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'
clipboard tests: Add noreturn annotations where possible
See merge request GNOME/gtk!3493
Matthias Clasen [Sat, 1 May 2021 15:59:21 +0000 (15:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
wayland: Rewrite shm format debug spew
See merge request GNOME/gtk!3492
Ivan Molodetskikh [Sat, 1 May 2021 15:17:40 +0000 (18:17 +0300)]
gtkgstmediafile: Fix callback argument type
Matthias Clasen [Sat, 1 May 2021 15:05:27 +0000 (11:05 -0400)]
wayland: Rewrite shm format debug spew
Rewrite this in a way that doesn't depend on kernel
header defines at the time the wayland scanner was run.
This was causing the build to break on Centos 8, where
a bunch of fourcc formats are missing.
Timm Bäder [Sat, 1 May 2021 15:14:23 +0000 (17:14 +0200)]
clipboard tests: Add noreturn annotations where possible
Clang complains when they are missing.
Matthias Clasen [Fri, 30 Apr 2021 19:29:15 +0000 (19:29 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Check for root being a GtkWindow in a few places
See merge request GNOME/gtk!3491
Matthias Clasen [Fri, 30 Apr 2021 17:44:15 +0000 (13:44 -0400)]
Check for root being a GtkWindow in a few places
These things were showing up as crashes during DND,
when the root is a GtkDragIcon. I'm sure there's more.
Matthias Clasen [Fri, 30 Apr 2021 16:48:04 +0000 (16:48 +0000)]
Merge branch 'bilelmoussaoui/gdk-content-formats-annotations' into 'master'
gdk: add length annotation to gdk_content_formats_get_mime_types
See merge request GNOME/gtk!3488
Matthias Clasen [Fri, 30 Apr 2021 15:25:50 +0000 (15:25 +0000)]
Merge branch 'clipboard-test' into 'master'
Add more clipboard tests
See merge request GNOME/gtk!3478
Matthias Clasen [Fri, 30 Apr 2021 13:46:11 +0000 (09:46 -0400)]
Install the clipboard-client binary
It is needed for the installed test.
Bilal Elmoussaoui [Fri, 30 Apr 2021 13:40:27 +0000 (15:40 +0200)]
gdk: add zero-terminated annotation to content_formats_get_gtypes
Bilal Elmoussaoui [Fri, 30 Apr 2021 11:42:02 +0000 (11:42 +0000)]
gdk: fix content_formats_get_mime_types annotation
Matthias Clasen [Fri, 30 Apr 2021 13:17:39 +0000 (09:17 -0400)]
Skip clipboard tests when they don't work
On headless weston, we have no seat, so focusing
the window won't work, and thus claiming the clipboard
won't either. Skip the tests in that case.
Matthias Clasen [Fri, 30 Apr 2021 12:10:48 +0000 (08:10 -0400)]
Run gdk tests with an unset D-Bus address
If the session bus address is unset, GLib will
helpfully try to autolaunch a bus, which will
fail and timeout. If we set an empty address,
it gives up early.
Matthias Clasen [Fri, 30 Apr 2021 12:02:35 +0000 (08:02 -0400)]
Fix the clipboard test under X11
We don't have a signal handler to worry about here.
Matthias Clasen [Fri, 30 Apr 2021 11:47:19 +0000 (07:47 -0400)]
Make clipboard tests run installed
Use dedicated data files, and install them.
As usual, to run the test binary by hand, you
will need to set G_TEST_SRCDIR.
Pawan Chitrakar [Fri, 30 Apr 2021 10:51:44 +0000 (10:51 +0000)]
Update Nepali translation
(cherry picked from commit
24e924720d0e39aa5547a729923628ad3eb8d650)
Matthias Clasen [Mon, 26 Apr 2021 21:02:50 +0000 (17:02 -0400)]
Add more clipboard tests
This tests the simple cases of copying text,
files, colors or images between processes.
Chun-wei Fan [Thu, 29 Apr 2021 04:04:42 +0000 (12:04 +0800)]
gdkglcontext-win32.c: Fix running with Mesa drivers
Some GL drivers such as Mesa-D3D12 do not allow one to call SetPixelFormat() on
a given HDC if one pixel format has been already set for it, so first check the
HDC with GetPixelFormat() to see whether a pixel format has already been set
with the HDC, and only attempt to acquire the pixel format if one has not been
set.
This will fix running with GL/NGL on Windows using the Mesa drivers.
Matthias Clasen [Wed, 28 Apr 2021 16:09:32 +0000 (16:09 +0000)]
Merge branch 'bookmark-fix' into 'master'
gtkplacessidebar.c: add bookmark null checking
See merge request GNOME/gtk!3479
Geyslan G. Bem [Wed, 28 Apr 2021 11:42:59 +0000 (08:42 -0300)]
gtkplacessidebar.c: fix coding style
Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
Emmanuele Bassi [Wed, 28 Apr 2021 09:50:55 +0000 (09:50 +0000)]
Merge branch 'ebassi/issue-3905' into 'master'
docs: Add missing extra files for gdk4 sub-references
Closes #3905
See merge request GNOME/gtk!3481
Matthias Clasen [Wed, 28 Apr 2021 00:50:42 +0000 (00:50 +0000)]
Merge branch 'memfd_create' into 'master'
gdk/wayland/cursor/os-compatibility: fix build when memfd_create is not available
See merge request GNOME/gtk!3480
Emmanuele Bassi [Wed, 28 Apr 2021 00:44:47 +0000 (01:44 +0100)]
docs: Add missing extra files for gdk4 sub-references
The Wayland and X11 references need the gtk-logo.svg and the urlmap.js
extra files.
Fixes: #3905
David Lechner [Tue, 27 Apr 2021 16:37:16 +0000 (11:37 -0500)]
gdk/wayland/cursor/os-compatibility: fix build when memfd_create is not available
When building for homebrew/linuxbrew on Ubuntu 16.04, memfd_create() is
not available and causes the build to fail.
This adds a proper check for the function.
Geyslan G. Bem [Tue, 27 Apr 2021 14:42:55 +0000 (11:42 -0300)]
gtkplacessidebar.c: add bookmark null checking
This fixes nautilus crash and perhaps other callers issues.
Nautilus (and sometimes glib) crashes with malformed URI inside of the
bookmarks file .config/gtk-3.0/bookmarks when it has no LABEL.
This is result from the closed glib MR #2065 analysis and agreement.
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2065#note_1091979
Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
Matthias Clasen [Tue, 27 Apr 2021 03:48:13 +0000 (03:48 +0000)]
Merge branch 'fix-panel-monitor' into 'master'
x11: Try harder to find the right monitor
Closes #3900
See merge request GNOME/gtk!3477
Matthias Clasen [Tue, 27 Apr 2021 03:18:50 +0000 (23:18 -0400)]
x11: Try harder to find the right monitor
If we deal with a panel, we end up with no monitor,
and crash, which isn't great and isn't necessary.
Fixes: #3900
Benjamin Otte [Mon, 26 Apr 2021 21:15:32 +0000 (21:15 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
clipboard: Make sure G_TYPE_STRING is nul-terminated
Closes #3899
See merge request GNOME/gtk!3476
Benjamin Otte [Mon, 26 Apr 2021 19:32:00 +0000 (21:32 +0200)]
clipboard: Fix reading of files
Make sure writing a terminating null byte actually works and we don't
just ignore the error message.
Benjamin Otte [Mon, 26 Apr 2021 18:57:55 +0000 (20:57 +0200)]
clipboard: Make sure G_TYPE_STRING is nul-terminated
When reading text, we need to check we terminate the G_TYPE_STRING
string with a null byte, because the clipboard does not guarantee one.
So just append a \0 to the stream.
Fixes #3899
Matthias Clasen [Mon, 26 Apr 2021 11:59:01 +0000 (11:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
wayland: Print all layouts in debug spew
See merge request GNOME/gtk!3475
Matthias Clasen [Mon, 26 Apr 2021 04:15:50 +0000 (00:15 -0400)]
wayland: Print all layouts in debug spew
Pawan Chitrakar [Mon, 26 Apr 2021 01:10:11 +0000 (01:10 +0000)]
Update Nepali translation
(cherry picked from commit
193747fadff285ef7cf921158c454571adece94d)
Jordi Mas [Sun, 25 Apr 2021 18:08:19 +0000 (20:08 +0200)]
Update Catalan translation
Matthias Clasen [Sun, 25 Apr 2021 11:43:23 +0000 (11:43 +0000)]
Merge branch 'fix-x11-shadows' into 'master'
x11: Fix shadows
Closes #3896
See merge request GNOME/gtk!3473